import EmployeeList from '@/view/test/EmployeeList'
import Login from '@/view/Login'
import Home from '@/view/Home'
import Test from '@/view/test/test'
import ClientPurchaseOrder from "@/view/order/ClientPurchaseOrder";
import ClientRechargeOrder from "@/view/order/ClientRechargeOrder";
import ClientRefundOrder from "@/view/refund/ClientRefundOrder";
import SupplierRefundOrder from "@/view/refund/SupplierRefundOrder";
import SupplierSettlementOrder from "@/view/order/SupplierSettlementOrder";
import PurchasePlan from '@/view/purchasing/purchasingPlan';
import Client from '@/view/kehu/Client';
import Promotion from '@/view/promotion/promotion';
import Quotation from '@/view/purchasing/quotation'
import SupplierInfo from "@/view/supplier/SupplierInfo";


export default {
    mode: 'history',
    routes: [
        {
            path: '/home',
            name: 'Home',
            component: Home,
            children: [
                {
                    path: '/promotion',
                    name: 'promotion',
                    component: Promotion,
                },
                {
                    path: '/client',
                    name: 'client',
                    component: Client,
                },
                {
                    path: '/employee',
                    name: 'employee',
                    component: EmployeeList,
                },
                {
                    path: '/purchasePlan',
                    name: 'purchasePlan',
                    component: PurchasePlan,
                },
                {
                    path: '/quotation',
                    name: 'quotation',
                    component: Quotation,
                },
                {
                    path: '/test',
                    name: 'test',
                    component: Test,
                },
                {
                    path: '/purchase_order',
                    name: 'purchaseOrder',
                    component: ClientPurchaseOrder,
                },
                {
                    path: '/recharge_order',
                    name: 'rechargeOrder',
                    component: ClientRechargeOrder,
                },
                {
                    path: '/clientRefundOrder',
                    name: 'clientRefundOrder',
                    component: ClientRefundOrder,
                },
                {
                    path: '/supplierRefundOrder',
                    name: 'supplierRefundOrder',
                    component: SupplierRefundOrder,
                },
                {
                    path: '/settlement_order',
                    name: 'settlementOrder',
                    component: SupplierSettlementOrder,
                },
                {
                    path: '/supplier_info',
                    name: 'supplierInfo',
                    component: SupplierInfo,
                },
            ]
        },
        {
            path: '/login',
            name: 'Login',
            component: Login,
        },

//         {
//             path: '/',
//             name: 'index',
//             redirect: '/dashboard/workplace',
//             children: [
//                 {
//                     path: '/dashboard/workplace',
//                     name: 'WorkPlace',
//                     component: () => import('@/views/dashboard/Workplace'),
//                     meta: { title: '工作台', keepAlive: false, icon: 'dashboard' }
//                 },
//                 {
//                     path: '/permission',
//                     name: 'permission',
//                     redirect: '/permission/user',
//                     component: RouteView,
//                     meta: { title: '权限管理', keepAlive: true, icon: 'control' },
//                     children: [
//                         {
//                             path: '/permission/user',
//                             name: 'User',
//                             component: () => import('@/views/permission/UserList'),
//                             meta: { title: '用户管理', keepAlive: false }
//                         },
//                         {
//                             path: '/permission/role',
//                             name: 'Role',
//                             component: () => import('@/views/permission/RoleList'),
//                             meta: { title: '角色管理', keepAlive: false }
//                         },
//                         {
//                             path: '/permission/resource',
//                             name: 'Resource',
//                             component: () => import('@/views/permission/ResourceList'),
//                             meta: { title: '资源管理', keepAlive: false }
//                         }
//                     ]
//                 }
//             ]
//         },
//         {
//             path: '*', redirect: '/404', hidden: true
//         }
    ]
}
